home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
util
/
boot
/
DontCloseWB.lha
/
DontCloseWB
/
DontCloseWB.doc
< prev
next >
Wrap
Text File
|
1995-06-18
|
4KB
|
108 lines
DontCloseWB V1.0
Function:
This is a patch that disables programs from closing the Workbench
Screen.
Background:
Since the times of Kickstart 1.x programs may call a function named
CloseWorkBench that closes the WB screen, so the program can get some
more memory. Under Kickstart 2.0 and higher the handling of the
Workbench Screen has somewhat changed. As a Public Screen, the WB
screen normally should not be closed. Nevertheless there are still
applications that try to close it. If there is an open shell or some
other window that does not belong to the WB nothing will happen. But
since I cannot be sure of always having an open shell window on my
Workbench Screen I wrote this little patch that will not allow
programs to close the WB screen.
IPrefs:
IPrefs is responsible of applying the changes in the preferences to
the system. Under Workbench 3.0 and 3.1 IPrefs can be found as
"« IPrefs »" in the task list. Under Workbench 2.04 IPrefs' name is
"IPrefs 37.xxx (xx.xx.xx)" (this seems to be the version string).
Since I do not have access to an Amiga with Workbench 2.05 or 2.1 I do
not know IPrefs' name under these versions.
DontCloseWB can detect if IPrefs 3.0 or 3.1 tries to close the WB
screen. If future versions of IPrefs will be called "« IPrefs »" in
the task list they will also be detected, of course. However, if one
of these IPrefs versions tries to close the WB screen it will be
allowed to do so. This means that there will be no problems when you
want to change the WB screen mode.
If Kickstart 2.04 users try to change the screen mode of their WB they
will see a confusing requester after the have clicked on the
"Use"-Gadget in the Prefs. They have to disable DontCloseWB with the
Commodities exchange program, click on "Retry" and finally re-enable
DontCloseWB. Sorry for this little inconvenience. If You want this to
be changed feel free to write an Email or a letter to me.
Usage:
Simply start DontCloseWB by typing "DontCloseWB" in a shell window.
Putting DontCloseWB into Your User-Startup is highly recommended ;-)
Since DontCloseWB will not detach from the current shell, You should
of course write "Run >NIL: DontCloseWB" to Your User-Startup.
When DontCloseWB is running You can use the Commodities exchange
program to enable, disable or quit DontCloseWB. You can also quit
DontCloseWB by sending it a CTRL_C signal or by running it a second
time.
As You can easily imagine, DontCloseWB will not work with Kickstart
versions less than 2.04.
Technical:
Yes, this is a hack. A patch that disables the CloseWorkBench entry of
the Intuition-Library by simply ReTurning from Subroutine (RTS) unless
the name of the actual task is "« IPrefs »".
Removing the patch is fairly safe: When You disable or quit
DontCloseWB it will check whether the CloseWorkBench entry has been
overpatched in the meantime. If not, DontCloseWB can set the
CloseWorkBench entry to its previous value, but otherwise it will
remove itself from a "buffer area", not from the CloseWorkBench entry.
Address:
Send everything (bug reports, comments, etc...) concerning DontCloseWB
to:
Roland Fulde Email: fulde@Uni-Muenster.De
Kiebitzweg 12
48329 Havixbeck
Germany
Copyright:
DontCloseWB is Freeware: You may use it, You may copy it, but You must
not sell it for more than 100$ ;-) Of couse, You must not change this
documentation, either...
History:
V1.0 (18.06.95) First release.